package com.ruoyi.devicebind.mapper;

import java.util.List;
import com.ruoyi.devicebind.domain.devicebind;
import org.apache.ibatis.annotations.Mapper;

/**
 * 设备绑定解绑Mapper接口
 * 
 * @author ruoyi
 * @date 2021-03-16
 */
@Mapper
public interface devicebindMapper 
{
    /**
     * 查询设备绑定解绑
     * 
     * @param correctionuserId 设备绑定解绑ID
     * @return 设备绑定解绑
     */
    public devicebind selectdevicebindById(Long correctionuserId);

    /**
     * 查询设备绑定解绑
     */
    public devicebind selectdevicebindByImei(Long imei);

    /**
     * 查询设备已绑定列表
     * 
     * @param devicebind 设备绑定解绑
     * @return 设备绑定解绑集合
     */
    public List<devicebind> selectdevicebindList(devicebind devicebind);

    /**
     * 新增设备绑定解绑
     * 
     * @param devicebind 设备绑定解绑
     * @return 结果
     */
    public int insertdevicebind(devicebind devicebind);

    /**
     * 修改设备绑定解绑
     * 
     * @param devicebind 设备绑定解绑
     * @return 结果
     */
    public int updatedevicebind(devicebind devicebind);

    /**
     * 删除设备绑定解绑
     * 
     * @param correctionuserId 设备绑定解绑ID
     * @return 结果
     */
    public int deletedevicebindById(Long correctionuserId);

    /**
     * 批量删除设备绑定解绑
     * 
     * @param correctionuserIds 需要删除的数据ID
     * @return 结果
     */
    public int deletedevicebindByIds(Long[] correctionuserIds);


    /**
     * 根据Imei修改表
     *
     */
    public int updatedevicebindByImei(devicebind devicebind);

}
